/* 共用样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Ma Shan Zheng', "Microsoft YaHei", sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
    position: relative;
}

/* 导航栏样式 */
.nav-bar {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 100;
}

.nav-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.nav-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* 气泡动画 */
.bubbles {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    top: 0;
    left: 0;
}

.bubble {
    position: absolute;
    bottom: -100px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    opacity: 0.5;
    animation: rise 10s infinite ease-in;
}

.bubble:nth-child(1) {
    width: 40px;
    height: 40px;
    left: 10%;
    animation-duration: 8s;
}

.bubble:nth-child(2) {
    width: 20px;
    height: 20px;
    left: 20%;
    animation-duration: 5s;
    animation-delay: 1s;
}

.bubble:nth-child(3) {
    width: 50px;
    height: 50px;
    left: 35%;
    animation-duration: 7s;
    animation-delay: 2s;
}

.bubble:nth-child(4) {
    width: 80px;
    height: 80px;
    left: 50%;
    animation-duration: 11s;
    animation-delay: 0s;
}

.bubble:nth-child(5) {
    width: 35px;
    height: 35px;
    left: 55%;
    animation-duration: 6s;
    animation-delay: 1s;
}

@keyframes rise {
    0% {
        bottom: -100px;
        transform: translateX(0);
    }
    50% {
        transform: translate(100px, -500px);
    }
    100% {
        bottom: 1080px;
        transform: translateX(-200px);
    }
}

/* 添加更多气泡 */
.bubble:nth-child(6) {
    width: 45px;
    height: 45px;
    left: 65%;
    animation-duration: 9s;
    animation-delay: 0.5s;
}

.bubble:nth-child(7) {
    width: 25px;
    height: 25px;
    left: 75%;
    animation-duration: 7s;
    animation-delay: 1.5s;
}

.bubble:nth-child(8) {
    width: 35px;
    height: 35px;
    left: 85%;
    animation-duration: 6s;
    animation-delay: 2.5s;
}

.bubble:nth-child(9) {
    width: 50px;
    height: 50px;
    left: 90%;
    animation-duration: 10s;
    animation-delay: 1s;
}

.bubble:nth-child(10) {
    width: 30px;
    height: 30px;
    left: 95%;
    animation-duration: 8s;
    animation-delay: 2s;
}

/* 导航链接样式 */
.nav-item {
    position: relative;
    text-decoration: none;
    color: white;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

/* 消息提示样式 */
.message-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.message-item {
    padding: 10px 20px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.message-item.show {
    opacity: 1;
    transform: translateY(0);
}

.message-icon {
    font-size: 1.2em;
}

.message-text {
    color: #333;
    font-size: 14px;
}

/* 不同类型的消息样式 */
.message-success {
    background: #f0f9eb;
    border: 1px solid #e1f3d8;
}

.message-error {
    background: #fef0f0;
    border: 1px solid #fde2e2;
}

.message-info {
    background: #f4f4f5;
    border: 1px solid #e9e9eb;
} 